// !!common.checkAppResult?$("#header").hide():null; //此代码用来解决在部分APP下出现的双标题问题，如果需要解开本行注释即可
// 百度地图API功能
var MyMap=function (){
};
MyMap.prototype={
	getPlace:function(lng,lat) {
	    var map = new BMap.Map("allmap");
	    map.enableScrollWheelZoom(true);
	    var point = new BMap.Point(lng,lat);
	    map.centerAndZoom(point,18);
		var myIcon = new BMap.Icon("./img/icon-GPSPosition.png", new BMap.Size(23,29));
	    var marker = new BMap.Marker(point,{icon:myIcon});
	    map.addOverlay(marker);
	    marker.setAnimation(BMAP_ANIMATION_BOUNCE);
	}
}
window.myMap=new MyMap();
var villageName=common.getQueryString('villageName');
var lng=common.getQueryString('longitude');
var lat=common.getQueryString('latitude');
$("#page-title").html(villageName);
myMap.getPlace(lng,lat);
